---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: {{ deployment_name }}-backup-claim
  namespace: {{ backup_pvc_namespace }}
  ownerReferences: null
  labels:
    {{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
spec:
  accessModes:
    - ReadWriteOnce
{% if backup_storage_class is defined %}
  storageClassName: {{ backup_storage_class }}
{% endif %}
  resources:
    requests:
      storage: {{ backup_storage_requirements | default('5Gi', true) }}
